import os
import django
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mydjango.settings')
django.setup()
from app01.models import Cate

cate_obj = Cate.objects.all()
print(cate_obj)
